/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
 */

package com.huawei.housekeeper.common.enums;

import com.huawei.housekeeper.common.constant.BaseCode;

/**
 * 状态码枚举类
 *
 * @author y84241604
 * @since 2022-03-24
 */

public enum BaseCodeMsg implements BaseCode {
    /**
     * 成功状态码
     */
    SUCCESS(200, "success");

    private int code;

    private String message;

    BaseCodeMsg(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return SUCCESS.code;
    }

    @Override
    public String getMessage() {
        return SUCCESS.message;
    }
}